<?php

$thumbnail = $this->PhpThumb->generate(
        array(
            'save_path' => WWW_ROOT . 'img/uploads/Subjects/thumbs',
            'display_path' => 'uploads/Subjects/thumbs',
            'error_image_path' => 'error.png',
            'src' => WWW_ROOT . "img/uploads/Subjects/" . $subject['Subject']['image'],
            'w' => 65,
            'h' => 65,
            'q' => 70,
            'zc' => 1
        )
);
?><?php

echo $this->Html->link($this->Html->image($thumbnail['src'], array('class' => 'latest_img', 'width' => $thumbnail['w'], 'height' => $thumbnail['h'], 'title' => $subject['Subject']['subject'], 'alt' => $subject['Subject']['subject'])), array('controller' => 'Subjects', 'action' => '../subject', $subject['Subject']['subject']), array('escape' => false));
?>